﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace TST.DemoCode.Domain
{
    public static class XmlHelper
    {
        public static string GetAttributeValue(XElement xmlNode, string name)
        {
            foreach (XAttribute attribute in xmlNode.Attributes())
            {
                if (attribute.Name.LocalName.Equals(name, StringComparison.InvariantCultureIgnoreCase))
                {
                    return attribute.Value;
                }
            }
            return String.Empty;
        }


    }
}
